package com.kim.useroauth.server.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.kim.useroauth.server.dao.UserAccountMapper;
import com.kim.useroauth.server.entity.UserAccount;
import com.kim.useroauth.server.service.IUserAccountService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class UserAccountServiceImpl implements IUserAccountService {

    @Resource
    private UserAccountMapper userAccountMapper;

    @Override
    public UserAccount getUserAccount(String phone) {
        return userAccountMapper.selectOne(new QueryWrapper<UserAccount>().eq("phone",phone));
    }
}